package com.design.ObserverMode.simpleDemo;

/**
 * 观察者简单模式
 */
public class main {

    public static void main(String[] args) {
        final MyObserver myObserver = new MyObserverImpl();
        myObserver.reg(new ObServerA());
        myObserver.reg(new ObServerB());
        myObserver.reg(new ObServerC());
        myObserver.notifyAll("start");
    }

}
